<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>14_动画-多个关键帧</title>
        <style>
            @keyframes moveDis {
                from {

                }

                to {
                    transform: translateX(900px);
                }
            }



            @keyframes changeColor {
                0% {

                }

                20% {
                    background-color: tomato;
                }

                40% {
                    background-color: green;
                }

                60% {
                    background-color: yellow;
                }

                80% {
                    background-color: skyblue;
                }

                100% {
                    background-color: black;
                }
            }


            div {
                width: 100px;
                height: 100px;
                background-color: aqua;

                animation-name: changeColor,moveDis;

                animation-duration: 5s;
            }
        </style>
    </head>
    <body>
        <div></div>
    </body>
</html>